package com.springcloud.play.mapper;

import com.springcloud.play.novel.model.NovelChapter;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;

@Mapper
public interface NovelChapterMapper {
    int insert(NovelChapter chapter);
    int update(NovelChapter chapter);
    NovelChapter selectById(Long id);
    NovelChapter selectByNovelIdAndChapterNumber(Long novelId, Integer chapterNumber);
    List<NovelChapter> selectByNovelId(Long novelId);
    int deleteById(Long id);
    int deleteByNovelId(Long novelId);
    Integer selectMaxChapterNumberByNovelId(Long novelId);
}